package com.tansun.easycare.rule.ruleproj.dao;

import java.util.List;

import com.tansun.easycare.rule.common.dao.RuleBaseDao;
import com.tansun.easycare.rule.ruleproj.entity.RuleProjectReference;

/**
 * 项目引用关系DAO接口
 * @author lph
 * @version 2019-09-12
 */

public interface RuleProjectReferenceDao extends RuleBaseDao<RuleProjectReference> {
    //通过项目code查询所依赖的项目名称的集合
    public List<String> getRefProName(String projectCode);

    //通过项目code查询所依赖的项目code的集合
    public List<String> getRefProCode(String projectCode);

    int deleteByCode(String projectCode);

    //逻辑删除。根据code将对应的记录状态修改为0
    int updateStatusByCode(String projectCode);
}